home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 July
/
EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso
/
earkit
/
news
/
thor
/
hd-install
/
thor.lha
/
bin
/
ValidateThor
< prev
next >
Wrap
AmigaDOS Script File
|
1997-04-27
|
2KB
|
90 lines
.key SYSTEM
.bra {
.ket }
; $VER: ValidateThor 1.2 (24.4.97)
; by Eirik Nicolai Synnes <eirikns@sn.no>
Echo "
ValidateThor 1.2
(24.4.97) by Eirik Synnes <eirikns@sn.no>*N"
Echo "IMPORTANT:"
Echo "o Only run ValidateThor after a reboot."
Echo "o For the best stability leave the system alone while validating."
Echo "o Be aware that validating the databases can take a long time."
Echo "o ValidateThor will perform a pack/purge after deleting corrupt messages."
Echo "o Use Sushi to avoid error requesters. Sushi can be found on AmiNet.*N"
; Check command line arguments
If "{SYSTEM}" EQ ""
Echo "Specify a system to validate.*N"
Echo "Usage: ValidateThor *"<system name>*""
Echo " Use ALL as <system name> to validate all systems.*N"
Skip End2
EndIf
Echo "Do you want to continue? [y/N]" NOLINE
Ask ""
If NOT WARN
Skip End2
EndIf
; See if ValidateThor is already running, exit if true
GetEnv >NIL: VT_Running
If NOT WARN
Echo "ValidateThor is already running."
Skip End2
EndIf
; Find the Thor dircetory
CD `getenv Thor/ThorPath`
; Get rid of bbsread.library
bin/LoadBBSRead QUIT
Avail >NIL: FLUSH
; Set the validate flag for the system
bin/BaseManager VALIDATE "{SYSTEM}"
If ERROR
Echo "Failed to set validate flag on *"{SYSTEM}*"."
Skip End
Else
FailAt 21
SetEnv VT_Running TRUE
; Delete corrupt messages and users
rx rexx/BBSRead/CheckDataBase.br "{SYSTEM}" DELETE
rx rexx/BBSRead/CheckUserDataBase.br "{SYSTEM}" DELETE
; Make sure all data files will be packed
rx rexx/BBSRead/CfgGlobal.br SET 00000040
; Pack the database
If "{SYSTEM}" EQ "ALL"
bin/PackBBS ALL
Else
bin/PackBBS "{SYSTEM}"
EndIf
EndIf
rx rexx/BBSRead/CfgGlobal.br CLEAR 00000040
Lab End
Lab End2
UnSetEnv VT_Running